package com.congee02.springframework.beans.factory.config;

/**
 * Class that exposes a reference to a bean name in an abstract fashion.
 * It just expresses a logical reference to the name of a bean.
 *
 * 只在逻辑上表示一个 bean 中对其他 bean 的引用的类
 *
 */
public class BeanReference {

    private final String beanName;

    public BeanReference(String beanName) {
        this.beanName = beanName;
    }

    public String getBeanName() {
        return beanName;
    }

    @Override
    public String toString() {
        return "BeanReference{" +
                "beanName='" + beanName + '\'' +
                '}';
    }
}
